package com.qf.job;

import org.apache.shardingsphere.elasticjob.api.ShardingContext;
import org.apache.shardingsphere.elasticjob.simple.job.SimpleJob;
import org.springframework.stereotype.Component;

/**
 * @author sunyamei
 * @version V1.0
 * @Project javase2203
 * @Package com.qf.job
 * @Description:
 * @Date 2022/8/16 21:12
 *
 * 任务类,需要手写,里面是执行的业务
 */
@Component
public class MyJob implements SimpleJob {


    @Override
    public void execute(ShardingContext shardingContext) {
        System.out.println("=======执行了一次业务==========");
    }
}
